package com.xxx.sso.repo.ref;

import com.xxx.sso.entity.rel.RelUserRole;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author caiwl
 * @date 2020/5/13 11:50
 */
public interface RelUserRoleRepo extends CrudRepository<RelUserRole, Long> {
    /**
     * 获取用户角色
     * @param userId
     * @return
     */
    List<OnlyRoleId> findByUserId(Long userId);
}
